package com.dhcc.bpm.common.utils.http;

import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/************************************************
 * Created by IntelliJ IDEA.
 * title: HttpsTrustManager
 * description: 
 * company: 东华软件股份公司
 * @author 邵 民
 * path: msfsw-parent-com.dhcc.zbyh.tools.https-HttpsTrustManager
 * date: 2020/1/8 17:49
 * version: 02.06
 *************************************************/
public class HttpsTrustManager implements X509TrustManager {
    @Override
    public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {

    }

    @Override
    public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {

    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[0];
    }
}
